package com.chengxiaoxiao.service;

import com.chengxiaoxiao.commons.Page;
import com.chengxiaoxiao.domain.Borrow;
import com.chengxiaoxiao.domain.json.AuthorAndImage;

import java.util.List;

public interface BorrowService extends CommonService<Borrow> {
    Page getListPageBorrow(String num);

    Page getListPageByNoReturn(String num);

    Page getListPageBorrowRank(String num);

    Page getListPageDestory(String num);

    Page getListPageNewRank(String num);

    Page getListPageHotAuthor(String num);

    AuthorAndImage getAuthorAndImage(String author);

    int getBorrowCountByUser(int uid);

    Borrow getBorrow(String userid, String bookId);

    List<Borrow> getBorrow(String userId);

    Borrow getBorrowNoReturn(String s, String bookId);

    List<Borrow> getExpire();

}
